import request from '@/utils/request'

// 查询肉品信息列表
export function listMeats(query) {
  return request({
    url: '/teahouse/meats/list',
    method: 'get',
    params: query
  })
}

// 查询肉品信息详细
export function getMeats(meatId) {
  return request({
    url: '/teahouse/meats/' + meatId,
    method: 'get'
  })
}

// 新增肉品信息
export function addMeats(data) {
  return request({
    url: '/teahouse/meats',
    method: 'post',
    data: data
  })
}

// 修改肉品信息
export function updateMeats(data) {
  return request({
    url: '/teahouse/meats',
    method: 'put',
    data: data
  })
}

// 删除肉品信息
export function delMeats(meatId) {
  return request({
    url: '/teahouse/meats/' + meatId,
    method: 'delete'
  })
}
